package com.ywj.controller;

//import com.ywj.springboot.base.Result;
//import com.ywj.base.Result;

import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;


/**
 * @className: RedisController
 * @description:
 * @author: yuwenjie
 * @date 2023-06-01 16:58
 */
@RestController
@RequestMapping("redis")
public class RedisController {
//    private final RedisTemplate redisTemplate;


//    public RedisController(RedisTemplate redisTemplate) {
//        this.redisTemplate = redisTemplate;
//    }

//    @GetMapping("save")
//    public Result save(String key, String value){
//        redisTemplate.opsForValue().set(key, value);
//        return Result.success();
//    }

}
